package com.xzbd.springbootmybatiesdm.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import lombok.Data;

@Data
@Configuration
@PropertySource( value = "classpath:config/spring/my-config.yml",factory = YamlPropertyLoadFactory.class)
@ConfigurationProperties(prefix = "xzbd.user.work")
public class Work{
    private String addr;
    private String company;
    private String empTotal;
    private String workType;

}